#ifndef BSP_CAN_H
#define BSP_CAN_H

#ifdef cplusplus
 extern "C" {
#endif

#include <stdint.h>
#include "gd32f10x.h"

/* select can */
#define CAN0_USED
//#define CAN1_USED

#ifdef  CAN0_USED
    #define CANX CAN0
#else 
    #define CANX CAN1
#endif

/* configure the TIMER peripheral */
void CAN0_Config(void);
void CAN0_Tx_Message(uint32_t stdid,uint32_t extid,uint8_t* pbuf);

#endif

